package com.bnzj.cloud.business.core.persistence.entity;

import com.bnzj.core.action.log.ActionLog;
import com.bnzj.core.persistence.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;

@Getter
@Setter
@ToString(callSuper = true)
@Entity
@Table(name = "bnz_sys_action_log")
@Schema(description="操作日志")
public class SysActionLog extends BaseEntity implements ActionLog {
    private static final long serialVersionUID = 6631695336614614728L;
    @Schema(description="用户工号")
    private String account;//工号
    @Schema(description="用户名称")
    private String userName;//用户名称
    @Schema(description="请求IP")
    private String ip;//请求IP
    @Schema(description="请求URL")
    private String url;//请求URL
    @Schema(description="请求方式")
    private String method;//请求方式
    @Schema(description="请求参数")
    private String parameter;//请求参数
    @Schema(description="模块名称")
    private String moduleName;//模块名称
    @Schema(description="行为")
    private String action;//行为
    @Schema(description="行为名称")
    private String actionName;//行为名称
}
